Optimal. Leaf size=142 \[ \frac{2 a^3 (35 c+32 d) \tan (e+f x)}{15 f \sqrt{a \sec (e+f x)+a}}+\frac{2 a^2 (5 c+8 d) \tan (e+f x) \sqrt{a \sec (e+f x)+a}}{15 f}+\frac{2 a^{5/2} c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{f}+\frac{2 a d \tan (e+f x) (a \sec (e+f x)+a)^{3/2}}{5 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.231934, antiderivative size = 142, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3917, 3915, 3774, 203, 3792} \[ \frac{2 a^3 (35 c+32 d) \tan (e+f x)}{15 f \sqrt{a \sec (e+f x)+a}}+\frac{2 a^2 (5 c+8 d) \tan (e+f x) \sqrt{a \sec (e+f x)+a}}{15 f}+\frac{2 a^{5/2} c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{f}+\frac{2 a d \tan (e+f x) (a \sec (e+f x)+a)^{3/2}}{5 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3917
Rule 3915
Rule 3774
Rule 203
Rule 3792
Rubi steps
\begin{align*} \int (a+a \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx &=\frac{2 a d (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\frac{2}{5} \int (a+a \sec (e+f x))^{3/2} \left (\frac{5 a c}{2}+\frac{1}{2} a (5 c+8 d) \sec (e+f x)\right ) \, dx\\ &=\frac{2 a^2 (5 c+8 d) \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{15 f}+\frac{2 a d (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\frac{4}{15} \int \sqrt{a+a \sec (e+f x)} \left (\frac{15 a^2 c}{4}+\frac{1}{4} a^2 (35 c+32 d) \sec (e+f x)\right ) \, dx\\ &=\frac{2 a^2 (5 c+8 d) \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{15 f}+\frac{2 a d (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\left (a^2 c\right ) \int \sqrt{a+a \sec (e+f x)} \, dx+\frac{1}{15} \left (a^2 (35 c+32 d)\right ) \int \sec (e+f x) \sqrt{a+a \sec (e+f x)} \, dx\\ &=\frac{2 a^3 (35 c+32 d) \tan (e+f x)}{15 f \sqrt{a+a \sec (e+f x)}}+\frac{2 a^2 (5 c+8 d) \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{15 f}+\frac{2 a d (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}-\frac{\left (2 a^3 c\right ) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}\\ &=\frac{2 a^{5/2} c \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}+\frac{2 a^3 (35 c+32 d) \tan (e+f x)}{15 f \sqrt{a+a \sec (e+f x)}}+\frac{2 a^2 (5 c+8 d) \sqrt{a+a \sec (e+f x)} \tan (e+f x)}{15 f}+\frac{2 a d (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}\\ \end{align*}
Mathematica [A] time = 0.921576, size = 128, normalized size = 0.9 \[ \frac{a^2 \sec \left (\frac{1}{2} (e+f x)\right ) \sec ^2(e+f x) \sqrt{a (\sec (e+f x)+1)} \left (2 \sin \left (\frac{1}{2} (e+f x)\right ) (2 (5 c+14 d) \cos (e+f x)+(40 c+43 d) \cos (2 (e+f x))+40 c+49 d)+30 \sqrt{2} c \sin ^{-1}\left (\sqrt{2} \sin \left (\frac{1}{2} (e+f x)\right )\right ) \cos ^{\frac{5}{2}}(e+f x)\right )}{30 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.241, size = 341, normalized size = 2.4 \begin{align*} -{\frac{{a}^{2}}{60\,f\sin \left ( fx+e \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}} \left ( 15\,\sqrt{2}\sin \left ( fx+e \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) \left ( -2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }} \right ) ^{5/2}c+30\,\sqrt{2}\sin \left ( fx+e \right ) \cos \left ( fx+e \right ){\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) \left ( -2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }} \right ) ^{5/2}c+15\,{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) \sqrt{2} \left ( -2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }} \right ) ^{5/2}c\sin \left ( fx+e \right ) +320\, \left ( \cos \left ( fx+e \right ) \right ) ^{3}c+344\, \left ( \cos \left ( fx+e \right ) \right ) ^{3}d-280\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}c-232\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}d-40\,c\cos \left ( fx+e \right ) -88\,d\cos \left ( fx+e \right ) -24\,d \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.97029, size = 1885, normalized size = 13.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.0254, size = 976, normalized size = 6.87 \begin{align*} \left [\frac{15 \,{\left (a^{2} c \cos \left (f x + e\right )^{3} + a^{2} c \cos \left (f x + e\right )^{2}\right )} \sqrt{-a} \log \left (\frac{2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) + 2 \,{\left (3 \, a^{2} d +{\left (40 \, a^{2} c + 43 \, a^{2} d\right )} \cos \left (f x + e\right )^{2} +{\left (5 \, a^{2} c + 14 \, a^{2} d\right )} \cos \left (f x + e\right )\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{15 \,{\left (f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )^{2}\right )}}, -\frac{2 \,{\left (15 \,{\left (a^{2} c \cos \left (f x + e\right )^{3} + a^{2} c \cos \left (f x + e\right )^{2}\right )} \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right ) -{\left (3 \, a^{2} d +{\left (40 \, a^{2} c + 43 \, a^{2} d\right )} \cos \left (f x + e\right )^{2} +{\left (5 \, a^{2} c + 14 \, a^{2} d\right )} \cos \left (f x + e\right )\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )\right )}}{15 \,{\left (f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )^{2}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]